extends GraphNode

@export var abEn:AbilityEntity

@onready var ab_label = %ability_label
# Called when the node enters the scene tree for the first time.
func _ready():
	#显示的技能名称、颜色和提示
	ab_label.text = abEn.name
	ab_label.add_theme_color_override("font_color",abEn.color)
	set_tooltip_text(abEn.description)
	#设置slot
	if abEn.parent_id == 'ROOT':
		set_slot(0,false,0,abEn.color,abEn.children_id.size()!=0,0,abEn.color)
	else:
		set_slot(0,true,0,abEn.color,abEn.children_id.size()!=0,0,abEn.color)
	
	
		

